import request from '@/utils/request'

// 获取用户列表
export function getUserList(data) {
  return request({
    url: '/operateUser/userList',
    method: 'post',
    data: data
  })
}

// 设置用户标签
export function updateUserTags(data) {
  return request({
    url: '/operateUser/updateSign',
    method: 'post',
    data: data
  })
}

// 获取标签
export function getTags() {
  return request({
    url: '/operateUser/userSignCount',
    method: 'get',
  })
}

// 添加标签
export function addTag(data) {
  return request({
    url: '/operateUser/addSign',
    method: 'post',
    data: data
  })
}

// 删除标签
export function deleteTag(data) {
  return request({
    url: '/operateUser/deleteSign',
    method: 'post',
    data: data
  })
}

// 重命名标签
export function renameTag(data) {
  return request({
    url: '/operateUser/signRename',
    method: 'post',
    data: data
  })
}

